package com.jl.model;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * <p>
 * 在此表中的数据会根据cron时间表达式插入到 inspection_task表中，形成巡检指令
 * </p>
 *
 * @author JiangJian
 * @since 2019-03-18
 */
@TableName("cycle_task")
public class CycleTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 周期任务名称
     */
    private String name;
    /**
     * 周期任务的描述信息
     */
    private String description;
    /**
     * 设备类型id
     */
    private Long modelId;
    /**
     * 任务内容
     */
    private String content;

    /**
     * 计划时间
     */
    private Date planTime;

    /**
     * cron日期表达式，用户定时发布巡检维护任务
     */
    private String cron;

    /**
     * 循环类型： 1:天;2:周;3:月;4:半年;5:一年
     */
    private Integer cycleType;

    /**
     * 状态码：暂未定义
     */
    private Integer status;

    /**
     * 巡检计划执行人id
     */
    private Long operatorId;

    /**
     * 创建时间
     */
    private Date gmtCreate;
    /**
     * 创建者id 如果值为0 则表示系统创建
     */
    private Long createId;
    /**
     * 修改时间
     */
    private Date gmtModified;
    /**
     * 修改者id
     */
    private Long modifyId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getModifyId() {
        return modifyId;
    }

    public void setModifyId(Long modifyId) {
        this.modifyId = modifyId;
    }

    public Date getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Date planTime) {
        this.planTime = planTime;
    }

    public Integer getCycleType() {
        return cycleType;
    }

    public void setCycleType(Integer cycleType) {
        this.cycleType = cycleType;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }
}
